<?php
/*
	插件初始化
*/
namespace jy_merchgame_pt;
defined('BY_JYA') or exit('error');
function init($plugin){
	//定义本场景的一些独立,为空表示共用电商客的
	$plugin->weishop_order_detail='';
	$plugin->weishop_order_list='';
	$plugin->syscolor=$plugin->plugin_setting('basic')['syscolor']?:'';
	$plugin->gamename='jy_merchgame_pt';
	$plugin->plugins=array();
	$plugin->tpl_status=array(
			'0'=>'未启用',
			'1'=>'已启用',
	);
	$plugin->allgames2=array(
			'jy_merchgame_mx'=>'秒杀活动',
			'jy_merchgame_fx'=>'分销活动',
			'jy_merchgame_pt'=>'拼团活动',
			'jy_merchgame_tg'=>'团购活动',
			'jy_merchgame_cj'=>'抽奖活动',
	);
	$plugin->baomingfileds=array(
		array('title'=>'项目名称','type'=>'1','ismust'=>'0','value'=>'项目名称'),
		array('title'=>'费用(￥)','type'=>'18','ismust'=>'0','value'=>''),
		array('title'=>'人数','type'=>'2','ismust'=>'0','value'=>'10'),
	);
	$plugin->groupfileds=array(
		array('title'=>'商品名称','type'=>'1','ismust'=>'0','value'=>'商品名称'),
		array('title'=>'商品图片','type'=>'3','ismust'=>'0','value'=>'商品图片'),
		array('title'=>'单位(件)','type'=>'1','ismust'=>'0','value'=>''),
		array('title'=>'价格(￥)','type'=>'18','ismust'=>'0','value'=>''),
		array('title'=>'库存','type'=>'2','ismust'=>'0','value'=>'1000'),
	);
}